/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.lojinha;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 *
 * @author rm64626
 */
@Entity
public class Item extends Loja implements Serializable{
    
    @Id
    private int codigo;
    private String nome;
    protected double preco;
    protected String descricao;

    public String getNome(){
        return nome;
    }
    public void setNome(){
        this.nome = nome;
    }
    
    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }

    public double getPreco() {
        return preco;
    }

    public void setPreco(double preco) {
        this.preco = preco;
    }

    public int getCodigo() {
        return codigo;
    }

    public void setCodigo(int codigo) {
        this.codigo = codigo;
    }
}